package com.ruoyi.gather.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteProductBrandService", value = ServiceNameConstants.GATHER_SERVICE)
public interface RemoteProductBrandService {

    /**
     * @Description: 根据品牌名称获取品牌ID，若没有，直接新增，默认需要授权
     * @Author: j.zh
     * @Date: 2024/6/12
     * @param name
     * @return
     * @Version: 4.0.0
     **/
    @GetMapping("/gather/productBrand/getBrandByName/{name}")
    String getBrandByName(@PathVariable("name") String name);
}
